Skip to content

gh-106320: Remove private _PyUnicode_AsString() alias#107021

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:remove_unicode_asstring
Jul 22, 2023
Merged

gh-106320: Remove private _PyUnicode_AsString() alias#107021
vstinner merged 1 commit intopython:mainfrom
vstinner:remove_unicode_asstring

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jul 22, 2023

Remove private _PyUnicode_AsString() alias to PyUnicode_AsUTF8(). It was kept for backward compatibility with Python 3.0 - 3.2.

The PyUnicode_AsUTF8() is available since Python
3.3. The PyUnicode_AsUTF8String() function can be used to keep compatibility with Python 3.2 and older.

Remove private _PyUnicode_AsString() alias to PyUnicode_AsUTF8(). It
was kept for backward compatibility with Python 3.0 - 3.2.

The PyUnicode_AsUTF8() is available since Python
3.3. The PyUnicode_AsUTF8String() function can be used to keep
compatibility with Python 3.2 and older.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants